﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MixScript.BLL.FI;
using System.Data;
using System.Runtime.Serialization;

namespace MixScriptWeb.Accounting.ReportObject
{
    public partial class rpt_ManufacturedCost : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //if (Session["Param1"] != null)
            //{
            DataSet ds;
            GridView gv;
            String param = (String)Session["Param1"];
            String param2 = (String)Session["Param2"];
            String sCurr = (String)Session["sCurr"];
            String period = (String)Session["period"];
            String periodName = (String)Session["periodName"];

            lblJudul.Text = "Dilaporkan dalam " + sCurr;
            lblPeriod.Text = "Period :" + periodName;
            Report rpt = new Report();

            ds = rpt.ManufacturingCost(param, param2, sCurr, period);
            for (int i = 0; i < ds.Tables.Count; i++)
            {

                gv = new GridView();
                gv.DataSource = ds.Tables[i];
                gv.DataBind();
                gv.CssClass = "GridView";

            }
            //}

        }
    }
}